FROM centos:7.2.1511

RUN yum -y update \
    && yum -y install java-1.8.0-openjdk* maven \
    && java -version
ADD m2 /root/.m2

#COPY . /data/

#RUN cd /data/ \
#    && cd consumer-demo \ 
#    && mvn package \
#    && ls target/*.jar \
#    && cd provider-demo \ 
#    && mvn package \
#    && ls target/*.jar


#CMD ["java", "-jar", "/data/consumer-demo/target/consumer-demo-0.0.1-SNAPSHOT.jar"]
#CMD ["java", "-jar", "/data/provider-demo/target/provider-demo-0.0.1-SNAPSHOT.jar"]
